package v;

abstract class Car {
 abstract void drive();
}
 class motuoche extends Car{
	 public void drive() {
		 System.out.println("摩托车,两轮");
		 
		 
	 }
 }
	class tuolaji extends Car{
		public void drive() {
			System.out.println("拖拉机，四轮");
		}
	}
 class qiche extends Car {
	 public void drive() {
		 System.out.println("小汽车，四轮");
		 
	 }
 }
 public class che{
	 public static void main(String[]args) {
		 motuoche a=new motuoche();
		 tuolaji b=new tuolaji();
		 qiche c=new qiche();
		 a.drive();
		 b.drive();
		 c.drive();
		 
	 }
 }
